package service;

import dao.AdminDao;
import pojo.Teacher;

import java.util.List;

/**
 * @author tao
 * @date 2021/11/10
 */
public class AdminServiceImpl implements AdminService {

    private AdminDao adminDao;

    public void setAdminDao(AdminDao adminDao) {
        this.adminDao = adminDao;
    }

    public int selectId(int id) {
        return adminDao.selectId(id);
    }

    public String selectPassword(int id) {
        return adminDao.selectPassword(id);
    }

    public List<Teacher> selectTeacher() {
        return adminDao.selectTeacher();
    }


    public int addTeacher(Teacher teacher) {
        return adminDao.addTeacher(teacher);
    }

    public int deleteStudent(int id) {
        return adminDao.deleteStudent(id);
    }
}
